package cn.hsa.fqz.task.dao;

import cn.hsa.fqz.task.entity.TTaskWorkReportDetailAttachment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TTaskWorkReportDetailAttachmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TTaskWorkReportDetailAttachment record);

    int insertSelective(TTaskWorkReportDetailAttachment record);

    TTaskWorkReportDetailAttachment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TTaskWorkReportDetailAttachment record);

    int updateByPrimaryKey(TTaskWorkReportDetailAttachment record);

    int deleteByDetailId(@Param("detailId")Integer detailId);

    List<TTaskWorkReportDetailAttachment> selectByRptDetailId(@Param("detailId") Integer rptDetailId);

    TTaskWorkReportDetailAttachment getAttachmentByDetailAndFileNo(@Param("fileNo") String fileNo, @Param("detailId") Integer detailId);
}